fsck: Fix version in docs, tweak error text
authorColin Walters <walters@verbum.org>
Mon, 9 Sep 2019 14:23:20 +0000 (14:23 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 9 Sep 2019 15:18:50 +0000 (15:18 +0000)
I think this error message is clearer.

Closes: #1918
Approved by: jlebon

src/libostree/ostree-repo.h
src/ostree/ot-builtin-fsck.c

index aaaaa622c6b58fd97e75b357ae2ef9880da79a51..40d3f7737984cc54324d47cbda68a240bf31390f 100644 (file)
@@ -255,7 +255,7 @@ gboolean      ostree_repo_write_config (OstreeRepo *self,
  * @OSTREE_REPO_COMMIT_STATE_PARTIAL: One or more objects are missing from the
  *    local copy of the commit, but metadata is present. (Since: 2015.7.)
  * @OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL: One or more objects are missing from the
- *    local copy of the commit, due to an fsck --delete. (Since: 2019.3.)
+ *    local copy of the commit, due to an fsck --delete. (Since: 2019.4.)
  *
  * Flags representing the state of a commit in the local repository, as returned
  * by ostree_repo_load_commit().
index 44e98a763716ab56a707fe8361b73527a24d4c68..5ad3bf38360bb132da4fef3156e2d78509a7208e 100644 (file)
@@ -456,7 +456,7 @@ ostree_builtin_fsck (int argc, char **argv, OstreeCommandInvocation *invocation,
     return glnx_throw (error, "Repository corruption encountered");
 
   if (n_fsck_partial > 0)
-    return glnx_throw (error, "%u fsck deleted partial commits not verified", n_partial);
+    return glnx_throw (error, "%u partial commits from fsck-detected corruption", n_partial);
 
   return TRUE;
 }